export default ({ request }) => ({
    /**
     * @description 菜单员查询
     * @description http://yapi.xiya.vip/project/11/interface/api/200
     */
    CONSULTLIST_QUERY(params) {
        return request({
            url: '/api/v1/advisory_record_list',
            method: 'get',
            params
        })
    },
    /**
     * @description 渠道列表
     * @description
     */
    SOURCE_LIST() {
        return request({
            url: '/api/v1/channel_sec_cat',
            method: 'get'
        })
    },
    /**
     * @description 表格列
     * @description
     */
    GET_TABBLECOLUMN(data) {
        return request({
            url: '/api/table/tableColumnSetting',
            method: 'post',
            data
        })
    },
    /**
     * @description 渠道列表
     * @description
     */
    SOURCETYPE_LIST() {
        return request({
            url: '/api/v1/source_type',
            method: 'get'
        })
    },
    /**
     * @description 意向课程
     * @description
     */
    COURSE_LIST() {
        return request({
            url: '/api/v1/course_cat',
            method: 'get'
        })
    },
    /**
     * @description 课程单价
     * @description
     */
    GET_COURSE_PRICE(query = {}) {
        return request({
            url: '/api/v1/get_course_price',
            method: 'get',
            params: query
        })
    },
    /**
     * @description 当前校区老师
     * @description
     */
    GET_BRANCH_TEACHER(query = {}) {
        return request({
            url: '/api/v1/get_branch_teacher',
            method: 'get',
            params: query
        })
    },
    /**
     * @description 班级课程类型
     * @description
     */
    GET_COURSE_CYCLE_TYPE(query = {}) {
        return request({
            url: '/api/v1/get_course_cycle_type',
            method: 'get',
            params: query
        })
    },
    /**
     * @description 系统课程分类下的科目
     * @description
     */
    GET_COURSE_SUBJECT(query = {}) {
        return request({
            url: '/api/v1/course_subject',
            method: 'get',
            params: query
        })
    },
    /**
     * @description 获取校区开设的课程
     * @description
     */
    GET_BRANCH_COURSE(query = {}) {
        return request({
            url: '/api/v1/get_branch_course',
            method: 'get',
            params: query
        })
    },
    /**
     * @description 订单续费
     * @description
     */
    COURSE_ORDER_RENEW(data = {}) {
        return request({
            url: '/api/v1/course_order_renew',
            method: 'post',
            data
        })
    },
    /**
     * @description 订单退费
     * @description
     */
    COURSE_ORDER_REFUND(data = {}) {
        return request({
            url: '/api/v1/course_order_refund',
            method: 'post',
            data
        })
    },
    /**
     * @description 结课
     * @description
     */
    CLOSE_STUDENT_COURSE(data = {}) {
        return request({
            url: '/api/v1/close_student_course',
            method: 'put',
            data
        })
    },
    /**
     * @description 获取课程分类选项
     * @description
     */
    GET_COURSE_CATEGORY_SELECT(params = {}) {
        return request({
            url: '/api/v1/course_category_select',
            method: 'get',
            params
        })
    },
    /**
     * @description 获取课程分类选项
     * @description
     */
    GET_COURSE_SUBJECT_SELECT(params = {}) {
        return request({
            url: '/api/v1/course_subject_select',
            method: 'get',
            params
        })
    },
    /**
     * @description 获取配置
     * @description
     */
    GET_SYSTEM_CONFIG(params = {}) {
        return request({
            url: '/api/v1/system_config_param_set',
            method: 'get',
            params
        })
    },
    /**
     * @description 获取配置
     * @description
     */
    UPDATE_SYSTEM_CONFIG(data = {}) {
        return request({
            url: '/api/v1/system_config_param_set',
            method: 'post',
            data
        })
    }
})
